Ext.define('Service.user.view.UserInfoEditForm', {
    extend: 'Ext.form.Panel',
    alias : 'widget.Service_user_view_UserInfoEditForm',
    frame: true,
    layout: {
        type: 'fit'
    },
    style:{
    	border:'none'
    },
    bodyPadding: 50,
    title: '',
    
    initComponent: function() {
        var me = this;
        Ext.applyIf(me,{
        	items : [
				{
				    xtype: 'fieldset',
				    title: '用户信息录入',
				    items: [
				    	{
		                    xtype: 'hiddenfield',
		                    fieldLabel: '用户ID',
		                    anchor: '100%',
		                    name:'id'
		                },
				        {
				            xtype: 'textfield',
				            fieldLabel: '登陆用户',
				            anchor: '100%',
				            name : 'userName',
				            allowBlank: false,
                            blankText: '登陆用户不能为空',
                            vtype: 'alphanum',
                            vtypeText: '用户名为字母与数字组合', 
                            msgTarget: 'side'
				        },
				        {
				            xtype: 'textfield',
				            fieldLabel: '真实姓名',
				            anchor: '100%',
				            name : 'realName'
				        },
				        {
				            xtype: 'textfield',
				            fieldLabel: '手机号码',
				            anchor: '100%',
				            name : 'phone',
				            validator : function(value){
				            	if(/^\d*$/.test(value))
				            		return true;
				            	else
				            		return '手机号码为空或数字';
				            },
				            msgTarget: 'side'
				        },
				        {
				            xtype: 'textfield',
				            fieldLabel: '有效住址',
				            anchor: '100%',
				            name : 'address'
				        },
				        {
				            xtype: 'textfield',
				            fieldLabel: '邮政编码',
				            anchor: '100%',
				            name : 'zipCode'
				        },
				        {
				        	xtype: 'combobox',
				            fieldLabel: '证件类型',
				            anchor: '100%',
				            name : 'cardType',
				            blankText: '请选择证件类型',
				            store: new Service.user.store.CardTypeValueStore(),
				            queryMode: 'local',
				            displayField: 'text',
				            valueField: 'value'
				        },
				        {
				            xtype: 'textfield',
				            fieldLabel: '证件号码',
				            anchor: '100%',
				            name : 'cardNo'
				        }
				    ]
				}
        	]
        });
        me.callParent(arguments);
    }
});